﻿using RpcCentral.Model;
using RpcCentral.Model.DB;

namespace RpcCentral.DAL
{
    public interface IRemoteServerDAL
    {
        long Add(RemoteServerConfig add);
        long FindServiceId(Guid containerId);
        long FindServiceId(long systemType, string mac, int serverIndex);
        RemoteServerModel GetRemoteServer(long id);
        BasicServer[] GetRemoteServerConfig(long[] ids);
        long[] LoadServer(int serverIndex);
        bool ServerOffline(long serverId, int serverIndex);
        bool ServerOnline(long serverId, int serverIndex);
        void SetConIp(long serverId, string conIp);
        void SetServerApiVer(long serverId, string ver);
    }
}